package com.huai.demo_test1.singletionsecond.threadLocalInstance;/** * @author huaixiaohuan */public class ThreadLocalInstanceTest {    private ThreadLocalInstanceTest() {    }    private static final ThreadLocal<ThreadLocalInstanceTest> THREAD_LOCAL = ThreadLocal.withInitial(ThreadLocalInstanceTest::new);    public ThreadLocalInstanceTest getInstance(){        return THREAD_LOCAL.get();    }}